package com.hehao.java_basic.design_mode.structural.decorator;

import java.util.List;

/**
 * @author Damon
 * @date 2023/10/29/22:11
 */
public class Goods implements Car{
    private final Car car;

    public Goods(Car car) {
        this.car = car;
    }

    @Override
    public int getPrice() {
        return car.getPrice();
    }

    @Override
    public List<String> getNames() {
        return car.getNames();
    }
}
